package indi.cyh.entity;


import com.alibaba.fastjson2.annotation.JSONField;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.Table;
import io.swagger.v3.oas.annotations.media.Schema;
import java.io.Serializable;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;

/**
 * @author CYH
 * @date 2025-02-10  
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Table("sql_pub.config_service_condition")
@Schema(description = "实体类")
public class ConfigServiceCondition implements Serializable {


	private static final long serialVersionUID =  1280024312752653919L;


	/**
	 * 主键
	 */
	@Schema(description = "主键", example = "")
	@Id(value = "id")
	@JSONField(name = "id",alternateNames = { "id", "id"})
	private String id;

	/**
	 * 关联服务ID
	 */
	@Schema(description = "关联服务ID", example = "")
	@JSONField(name = "serviceId",alternateNames = { "serviceId", "service_id"})
	private String serviceId;

	/**
	 * 条件名
	 */
	@Schema(description = "条件名", example = "")
	@JSONField(name = "name",alternateNames = { "name", "name"})
	private String name;

	/**
	 * 条件中文名
	 */
	@Schema(description = "条件中文名", example = "")
	@JSONField(name = "cnName",alternateNames = { "cnName", "cn_name"})
	private String cnName;

	/**
	 * 条件sql
	 */
	@Schema(description = "条件sql", example = "")
	@JSONField(name = "sqlCondition",alternateNames = { "sqlCondition", "sql_condition"})
	private String sqlCondition;

	/**
	 * 说明
	 */
	@Schema(description = "说明", example = "")
	@JSONField(name = "remark",alternateNames = { "remark", "remark"})
	private String remark;

	/**
	 * 创建时间
	 */
	@Schema(description = "创建时间", example = "")
	@JSONField(name = "createTime",alternateNames = { "createTime", "create_time"}, format = "yyyy-MM-dd HH:mm:ss")
	private java.sql.Timestamp createTime;

	/**
	 * 状态(0有效、1删除)
	 */
	@Schema(description = "状态(0有效、1删除)", example = "")
	@JSONField(name = "state",alternateNames = { "state", "state"})
	private long state;

}
